<?php
require_once '../include/common.inc.php';

$query = "select * from softinfo where code = '$code'";
$result=$db->get_one($query);

if ($result[softver] != $softver)
{
	echo $result[updatetype].$result[softdownloadurl];
}
elseif ($result[filever] != $filever)
{
	echo $result[updatetype].$result[filedownloadurl];
}
else
{
	echo "0";
}
?>